package com.project.ssm.dao;

import com.project.ssm.domain.Member;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface IMemberDao {
    //查询所有会员信息
    @Select("select * from member")
    public List<Member> findAll() throws Exception;

    //根据id查询会员信息
    @Select("select * from member where id = #{id}")
    public Member findById(Integer id) throws Exception;
}
